<template>
  <div class="q-pa-md">
    <t-card class="my-card" flat bordered>
      <t-card-section>
        <div class="text-h6">Our Changing Planet</div>
        <div class="text-subtitle2">by John Doe</div>
      </t-card-section>

      <t-tabs v-model="tab" class="text-teal">
        <t-tab label="Tab one" name="one" />
        <t-tab label="Tab two" name="two" />
      </t-tabs>

      <t-separator />

      <t-tab-panels v-model="tab" animated>
        <t-tab-panel name="one">
          The QCard component is a great way to display important pieces of
          grouped content.
        </t-tab-panel>

        <t-tab-panel name="two">
          With so much content to display at once, and often so little screen
          real-estate, Cards have fast become the design pattern of choice for
          many companies, including the likes of Google and Twitter.
        </t-tab-panel>
      </t-tab-panels>
    </t-card>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        tab: ref('one'),
      };
    },
  };
</script>

<style lang="sass" scoped>
  .my-card
    width: 100%
    max-width: 250px
</style>
